package com.snoob.lixing.dataSource;

/**
 * Created with IntelliJ IDEA
 * User: lixing
 * Date: 2018/11/27 10:10
 */
public enum DataSourceEnum {

    // 本地数据源
    gdd_local("gdd_local", true),
    // 远程数据源
    gdd_remote("gdd_remote", false),;

    // 数据源名称
    private String name;

    // 是否是默认数据源
    private boolean master;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isMaster() {
        return master;
    }

    public void setMaster(boolean master) {
        this.master = master;
    }

    DataSourceEnum(String name, boolean master) {
        this.name = name;
        this.master = master;
    }

}
